package com.liang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 李昂
 * @since 2020-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CActive implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 活动id
     */
    @TableId(value = "aid", type = IdType.AUTO)
    private int aid;

    /**
     * 活动名称
     */

    private String name;

    /**
     * 活动地点
     */
    private String address;

    /**
     * 开始时间
     */
    private String starttime;

    /**
     * 结束时间
     */
    private String endtime;

    /**
     * 活动类型
     */
    private String type;

    /**
     * 举办方
     */
    private String host;

    /**
     * 活动图片
     */
    private String image;

    /**
     * 活动详情
     */
    private String detail;


    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String sno;
    @TableField(exist = false)
    private int count;
    @TableField(exist = false)
    private int extis;


}
